<?php
if(!defined('MY_ROOT'))
{throw new Exception('Access Denied');}
$rid=DB::get_str($_REQUEST['rid']);
$cond='`key`='.$rid;
$result=DB::select('download',$cond,'`id`',true);
$content=$result['content'];
DB::delete('download',$cond);
echo $content;
?>